package me.jiatao.mvpdagger2.ioc;

import dagger.Module;
import dagger.Provides;
import me.jiatao.mvpdagger2.mvc.news.INewsContract;
import me.jiatao.mvpdagger2.mvc.news.NewsModel;

/**
 * Created by JiaTao on 2018/8/30.
 * Email: 535318720@qq.com
 * Version: 1.0
 * Description:
 */

@Module
public class NewsModule {

    private INewsContract.INewsView view;

    public NewsModule(INewsContract.INewsView view) {
        this.view = view;
    }

    @Provides
    public INewsContract.INewsView userInfoView() {
        return view;
    }

    @Provides
    public NewsModel userInfoModel() {
        return new NewsModel();
    }
}
